package cn.itcast.controller;

import cn.itcast.service.IDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description :
 * @Auther : zj
 * @Date : 2019/1/17 10:15
 */
@Controller
@RequestMapping
public class DubboDemoController {

    @Autowired(required = false)
    private IDemoService demoService;

    @RequestMapping("/test.do")
    @ResponseBody
    public String test() {

        System.out.println("请求");
        return demoService.test();
    }
}
